﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="selectCourse.aspx.cs" Inherits="student_selectCourse" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type ="text/css" >
        a:link {color :#00ff21;text-decoration :none ;font-family :宋体;font-size :16px;font-weight :bold ;}
        a:visited {color :#00ff21;font-family :宋体;font-size :16px;font-weight :bold ;}
        a:hover {color :#0ff;text-decoration :underline ;font-family :微软雅黑;font-size :16px;font-weight :bold ; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style ="margin :0 auto;width :800px;text-align :center ;background :#fff;height :490px;">
        <!--学生选课-->
        <p style ="font-size :25px;text-align :center ;font-weight :bold ;height :25px;line-height :25px;">学生选修课程</p>
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="5" 
                OnPageIndexChanging ="GridView1_PageIndexChanging" OnSelectedIndexChanging ="GridView1_SelectedIndexChanging" Width ="800px">
                <Columns >
                    <asp:BoundField DataField ="ID" HeaderText ="ID号" ItemStyle-Width ="50px" />
                     <asp:BoundField DataField ="cNo" HeaderText ="课程号" ItemStyle-Width ="100px" />
                     <asp:BoundField DataField="cName" HeaderText ="课程名称" ItemStyle-Width ="200px" />
                     <asp:BoundField DataField="cTerm" HeaderText ="上课学期" ItemStyle-Width ="100px" /> 
                    <asp:BoundField DataField ="cPlace" HeaderText ="上课地点" ItemStyle-Width ="150px" />
                    <asp:BoundField DataField ="tName" HeaderText ="任课老师" ItemStyle-Width ="100px" />
                    <asp:CommandField ShowSelectButton="true" SelectText ="选修" ItemStyle-Width ="100px" />
                </Columns>
                <HeaderStyle BackColor ="#ccffff" Height ="30px" Font-Size ="18px" />
            </asp:GridView>
            <asp:Label runat ="server" ID ="Label1" Font-Size ="30px" ForeColor ="Red" ></asp:Label><!--提示消息-->
            <!--学生取消-->
           <p style ="font-size :25px;text-align :center ;font-weight :bold ;height :25px;line-height :25px;">学生取消课程</p>

        <asp:GridView ID="GridView2" runat="server"  AllowPaging="True" AutoGenerateColumns="False" PageSize="5" 
            OnPageIndexChanging ="GridView2_PageIndexChanging" OnSelectedIndexChanging ="GridView2_SelectedIndexChanging" Width ="800px">
            <Columns >
                    <asp:BoundField DataField="ID" HeaderText ="ID号" ItemStyle-Width ="50px" />
                     <asp:BoundField DataField="cNo" HeaderText ="课程号" ItemStyle-Width ="100px" />
                    <asp:BoundField DataField ="cName" HeaderText ="课程名称" ItemStyle-Width ="200px" />
                   <asp:BoundField DataField="cTerm" HeaderText ="上课学期" ItemStyle-Width ="100px" /> 
                   <asp:BoundField DataField="cPlace" HeaderText ="上课地点" ItemStyle-Width ="150px" />
                   <asp:BoundField DataField="tName" HeaderText ="任课老师" ItemStyle-Width ="100px" />
                    <asp:CommandField ShowSelectButton="true" SelectText ="选修" ItemStyle-Width ="100px" />
                </Columns>
            <HeaderStyle BackColor ="#66ccff" Height ="30px" Font-Size ="18px" />
          </asp:GridView>  
            <asp:Label runat ="server" ID ="Label2" Font-Size ="30px" ForeColor ="Red" ></asp:Label><!--提示消息-->
    </div>
    </form>
</body>
</html>
